package day1125;

import java.sql.SQLOutput;

public class demo2 {


    public static void main(String[] args) {
        double num=9;
        double sum=0;
        int i=0;
        do{
            System.out.println(num);
            sum=sum+num;
            num=num*10+9;
            i++;
        }while(i!=10);
        System.out.println(sum);
    }
}
